﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KingSite.SyncDB.Core.Entity {
    /// <summary>
    /// 数据库表实体
    /// </summary>
    public class TBEntity {
        public int Id { get; set; }
        /// <summary>
        /// 数据库Id
        /// </summary>
        public int DbId { get; set; }
        /// <summary>
        /// 数据库名
        /// </summary>
        public string DbName { get; set; }
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 上次同步时间戳
        /// </summary>
        public string LastTimeStamp { get; set; }
        /// <summary>
        /// 是否同步Insert记录
        /// </summary>
        public bool IsSyncInsert { get; set; }
        /// <summary>
        /// 是否同步Update记录
        /// </summary>
        public bool IsSyncUpdate { get; set; }
        /// <summary>
        /// 是否同步Delete记录
        /// </summary>
        public bool IsSyncDelete { get; set; }
        /// <summary>
        /// 同步等级，数字越大等级越高
        /// </summary>
        public int SyncLevel { get; set; }
    }
}

